package com.example.helloworlddemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// Rest风格而已
@RestController
public class HelloWorldDemo {
//    浏览器端访问 http://localhost:8080/login
    @RequestMapping("login")
//    返回字符串"Hello World！"的方法
    public String hello() {
        return "Hello World!";
    }
}
